package com.androidx.p013lv.mine.model;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.androidx.p013lv.base.bean.UserInfo;
import com.androidx.p013lv.base.http.BaseRes;
import com.androidx.p013lv.base.http.HttpUtils;
import com.androidx.p013lv.base.http.JsonParams;
import com.androidx.p013lv.base.http.UrlManager;
import com.androidx.p013lv.base.http.callback.HttpCallback;
import com.androidx.p013lv.base.interfaces.Key;

/* renamed from: com.androidx.lv.mine.model.RecoverAccountModel */
public class RecoverAccountModel extends ViewModel {
    private MutableLiveData<BaseRes<UserInfo>> recoverAccData;

    public MutableLiveData<BaseRes<UserInfo>> getRecoverAccData() {
        if (this.recoverAccData == null) {
            this.recoverAccData = new MutableLiveData<>();
        }
        return this.recoverAccData;
    }

    public void setRecoverAccData(String str, String str2) {
        HttpUtils.getInsatance().post(UrlManager.getInsatance().recoverAccount(), JsonParams.build().add("deviceId", str).add(Key.USER_ID, str2).commit(), new HttpCallback<BaseRes<UserInfo>>("recoverAccount") {
            /* class com.androidx.p013lv.mine.model.RecoverAccountModel.C13651 */

            public void onLvSuccess(BaseRes<UserInfo> baseRes) {
                RecoverAccountModel.this.recoverAccData.setValue(baseRes);
            }
        });
    }

    public void cancelHttp() {
        HttpUtils.getInsatance().cancelTag("recoverAccount");
    }
}
